{include file="public/header" /}

<h2>注册会员</h2>

<form action="{$action_url}" method="POST" style="margin-top:30px;">
    <div class="input-group">
		<span class="input-group-addon" id="basic-addon1">开通会员</span>
		<input type="number" name="mobile" class="form-control input-lg" value="{$mobile}" placeholder="会员/手机号" aria-describedby="basic-addon1">
	</div>

    <input type="hidden" name="__token__" value="{$Request.token}" />

    <p class="text-warning">
	    {if isset($register_error_message)} 
			{$register_error_message}
		{/if}
		{if $Think.session.search_mobile} 
			查询的用户不存在，帮他开通会员
		{/if}
	</p>

    <button type="submit" class="btn btn-primary btn-lg btn-block mt30" id="submit">开通会员</button>
    <button type="button" onclick="javascript:location.href='/';" class="btn btn-default btn-lg btn-block mt30">不了，返回查询页</a>

</form>

{include file="public/footer" /}

{literal}
<script type="text/javascript">
	$('#submit').click(function() {
		if(!confirm('去开通？')) {
			return false;
		}
	});	
</script>
{/literal}